# 依赖 nginx 容器 dockerfile 里的命令是基于dockerfile所在目录下执行
FROM nginx

# 作者
MAINTAINER yangxy

RUN mkdir -p /etc/nginx/logs && rm -rf /etc/nginx/nginx.conf && rm -rf /etc/nginx/conf.d/default.conf
ADD nginx.conf /etc/nginx/nginx.conf

COPY ./conf.d/* /etc/nginx/
#COPY ./ssl/* /etc/nginx/ssl/

# 将项目打包后的 dist 目录，拷贝到 nginx.conf 指定的发布目录
COPY dist/ /usr/share/nginx/html/

# RUN apt-get update && apt install -y iputils-ping && apt-get install -y telnet && apt-get install -y vim && apt-get install -y net-tools && echo 'complete'


